#include "hybridpluginplatform.h"

Dependency::Dependency(QString name, QString version)
    : m_name(name),
    m_version(version)
{
}

HybridPluginPlatform::HybridPluginPlatform(HybridPlugin& plugin)
    : m_plugin(plugin)
{
}

HybridPluginPlatform::~HybridPluginPlatform()
{
}

HybridPlugin& HybridPluginPlatform::plugin()
{
    return m_plugin;
}

const QString& HybridPluginPlatform::name() const
{
    return m_name;
}

void HybridPluginPlatform::setName(QString name)
{
    m_name = name;
}

int HybridPluginPlatform::version() const
{
    return m_version;
}

void HybridPluginPlatform::setVersion(int version)
{
    m_version = version;
}

HybridPluginPlatform::Format HybridPluginPlatform::format() const
{
    return m_format;
}

void HybridPluginPlatform::setFormat(Format format)
{
    m_format = format;
}

HybridPluginPlatform::Configuration HybridPluginPlatform::configuration() const
{
    return m_configuration;
}

void HybridPluginPlatform::setConfiguration(Configuration configuration)
{
    m_configuration = configuration;
}

const QString& HybridPluginPlatform::url() const
{
    return m_url;
}

void HybridPluginPlatform::setUrl(QString url)
{
    m_url = url;
}

int HybridPluginPlatform::qtVersion() const
{
    return m_qtVersion;
}

void HybridPluginPlatform::setQtVersion(int version)
{
    m_qtVersion = version;
}

const QList< QSharedPointer<Dependency> >& HybridPluginPlatform::dependencies() const
{
    return m_dependencies;
}

void HybridPluginPlatform::addDependency(QSharedPointer<Dependency> dependency)
{
    m_dependencies.append(dependency);
}
